﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BGM_ProjectOperationReport.aspx.cs" Inherits="KPIS.GERP.GBMS.APP_UI.BGM_ProjectOperationReport" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head id="Head1" runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
    <link rel="Stylesheet" href="../../Styles/StyleSheet.css" type="text/css" />
    <script type="text/javascript" src="../../Scripts/DatePicker.js"></script>
</head>
	<body>
	    <form id="form1" method="post" runat="server" class="defaultFont">
	    
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="None" > 
        </telerik:RadAjaxLoadingPanel>
        
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >
            <AjaxSettings>
            </AjaxSettings>
        </telerik:RadAjaxManager>

		
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">

            </script>
        </telerik:RadCodeBlock>

        <div class="DivControl">
            <table cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td width="10px">
                                
                    </td>
                    <td>
                        <asp:LinkButton ID="cmdReturn" runat="server" CssClass="LinkButtonWhite" 
                            Text="คืนเงินกลับสู่โครงการ" OnClick="cmdReturn_Click"
                            OnClientClick="javascript: return confirm('ต้องการคืนเงินกลับสู่โครงการ ทั้งหมด หรือไม่?');" />
                        <asp:Label ID="lblProjectOperSeq" runat="server" Visible="false" />
                    </td>
                </tr>
            </table>
        </div>
        <div class="DivInfo" style="font-weight:bold;">
            ก่อหนี้ผูกพัน
        </div>
        <telerik:RadGrid GroupingSettings-CaseSensitive="false" ID="gridReport2" runat="server"
            OnItemDataBound="ItemDataBound" 
            AutoGenerateColumns="False" GridLines="None" MasterTableView-GridLines="None" 
            Width="99%">
            <mastertableview ShowFooter="true" NoMasterRecordsText="... ไม่มีข้อมูล ..." 
                commanditemdisplay="none" width="100%" GroupLoadMode="Client">                                                           
            <Columns>
                <telerik:GridBoundColumn DataField="tdate" DataFormatString="{0:d}"
                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                    HeaderText="วันที่" ItemStyle-HorizontalAlign="Left" 
                    UniqueName="tdate" >
                    <HeaderStyle HorizontalAlign="Center"  Width="80px" />
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="code"
                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                    HeaderText="PP/PR" ItemStyle-HorizontalAlign="Left" 
                    UniqueName="code" >
                    <HeaderStyle HorizontalAlign="Center"  Width="100px" />
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="name"
                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                    HeaderText="รายการ" ItemStyle-HorizontalAlign="Left" 
                    UniqueName="name" >
                    <HeaderStyle HorizontalAlign="Center" />
                    <FooterStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="amount"
                    Aggregate="Sum" HeaderText="จำนวนเงิน (บาท)"
                    FooterAggregateFormatString="{0:#,##0.00}"
                    DataFormatString="{0:#,##0.00}"
                    HeaderStyle-HorizontalAlign="Center"
                    UniqueName="amount" Visible="true">
                    <HeaderStyle HorizontalAlign="Center" Width="120px" />
                    <FooterStyle HorizontalAlign="Right" Font-Bold="true" />
                    <ItemStyle HorizontalAlign="Right" />
                </telerik:GridBoundColumn>
            </Columns>
            </mastertableview>
            <clientsettings>
                <clientevents /><selecting allowrowselect="false" />
            </clientsettings>
        </telerik:RadGrid>
                
        <div class="DivInfo" style="font-weight:bold;">
            ตรวจรับ/ตั้งหนี้
        </div>
        <telerik:RadGrid GroupingSettings-CaseSensitive="false" ID="gridReport3" runat="server"
            OnItemDataBound="ItemDataBound" 
            AutoGenerateColumns="False" GridLines="None" MasterTableView-GridLines="None" 
            Width="99%">
            <mastertableview ShowFooter="true" NoMasterRecordsText="... ไม่มีข้อมูล ..." 
                commanditemdisplay="none" width="100%" GroupLoadMode="Client">                                                           
            <Columns>
                <telerik:GridBoundColumn DataField="tdate" DataFormatString="{0:d}"
                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                    HeaderText="วันที่" ItemStyle-HorizontalAlign="Left" 
                    UniqueName="tdate" >
                    <HeaderStyle HorizontalAlign="Center"  Width="80px" />
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="code"
                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                    HeaderText="RQ" ItemStyle-HorizontalAlign="Left" 
                    UniqueName="code" >
                    <HeaderStyle HorizontalAlign="Center"  Width="100px" />
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="code2"
                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                    HeaderText="PQ" ItemStyle-HorizontalAlign="Left" 
                    UniqueName="code2" >
                    <HeaderStyle HorizontalAlign="Center"  Width="100px" />
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="name"
                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                    HeaderText="รายการ" ItemStyle-HorizontalAlign="Left" 
                    UniqueName="name" >
                    <HeaderStyle HorizontalAlign="Center" />
                    <FooterStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="amount"
                    Aggregate="Sum" HeaderText="จำนวนเงิน (บาท)"
                    FooterAggregateFormatString="{0:#,##0.00}"
                    DataFormatString="{0:#,##0.00}"
                    HeaderStyle-HorizontalAlign="Center"
                    UniqueName="amount" Visible="true">
                    <HeaderStyle HorizontalAlign="Center" Width="120px" />
                    <FooterStyle HorizontalAlign="Right" Font-Bold="true" />
                    <ItemStyle HorizontalAlign="Right" />
                </telerik:GridBoundColumn>
            </Columns>
            </mastertableview>
            <clientsettings>
                <clientevents /><selecting allowrowselect="false" />
            </clientsettings>
        </telerik:RadGrid>
                
        <div class="DivInfo" style="font-weight:bold;">
            เบิกจ่าย
        </div>
        <telerik:RadGrid GroupingSettings-CaseSensitive="false" ID="gridReport4" runat="server"
            OnItemDataBound="ItemDataBound" 
            AutoGenerateColumns="False" GridLines="None" MasterTableView-GridLines="None" 
            Width="99%">
            <mastertableview ShowFooter="true" NoMasterRecordsText="... ไม่มีข้อมูล ..." 
                commanditemdisplay="none" width="100%" GroupLoadMode="Client">                                                           
            <Columns>
                <telerik:GridBoundColumn DataField="tdate" DataFormatString="{0:d}"
                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                    HeaderText="วันที่" ItemStyle-HorizontalAlign="Left" 
                    UniqueName="tdate" >
                    <HeaderStyle HorizontalAlign="Center"  Width="80px" />
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="code"
                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                    HeaderText="PQ" ItemStyle-HorizontalAlign="Left" 
                    UniqueName="code" >
                    <HeaderStyle HorizontalAlign="Center"  Width="100px" />
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="code2"
                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                    HeaderText="RQ" ItemStyle-HorizontalAlign="Left" 
                    UniqueName="code2" >
                    <HeaderStyle HorizontalAlign="Center"  Width="100px" />
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="name"
                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                    HeaderText="รายการ" ItemStyle-HorizontalAlign="Left" 
                    UniqueName="name" >
                    <HeaderStyle HorizontalAlign="Center" />
                    <FooterStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="amount"
                    Aggregate="Sum" HeaderText="จำนวนเงิน (บาท)"
                    FooterAggregateFormatString="{0:#,##0.00}"
                    DataFormatString="{0:#,##0.00}"
                    HeaderStyle-HorizontalAlign="Center"
                    UniqueName="amount" Visible="true">
                    <HeaderStyle HorizontalAlign="Center" Width="120px" />
                    <FooterStyle HorizontalAlign="Right" Font-Bold="true" />
                    <ItemStyle HorizontalAlign="Right" />
                </telerik:GridBoundColumn>
            </Columns>
            </mastertableview>
            <clientsettings>
                <clientevents /><selecting allowrowselect="false" />
            </clientsettings>
        </telerik:RadGrid>
        <div class="DivInfo" style="font-weight:bold;">
            เบิกเกินส่งคืน
        </div>
        <telerik:RadGrid GroupingSettings-CaseSensitive="false" ID="gridReport5" runat="server"
            OnItemDataBound="ItemDataBound" 
            AutoGenerateColumns="False" GridLines="None" MasterTableView-GridLines="None" 
            Width="99%">
            <mastertableview ShowFooter="true" NoMasterRecordsText="... ไม่มีข้อมูล ..." 
                commanditemdisplay="none" width="100%" GroupLoadMode="Client">                                                           
            <Columns>
                <telerik:GridBoundColumn DataField="tdate" DataFormatString="{0:d}"
                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                    HeaderText="วันที่" ItemStyle-HorizontalAlign="Left" 
                    UniqueName="tdate" >
                    <HeaderStyle HorizontalAlign="Center"  Width="80px" />
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="code"
                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                    HeaderText="RC" ItemStyle-HorizontalAlign="Left" 
                    UniqueName="code" >
                    <HeaderStyle HorizontalAlign="Center"  Width="100px" />
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="code2"
                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                    HeaderText="RQ" ItemStyle-HorizontalAlign="Left" 
                    UniqueName="code2" >
                    <HeaderStyle HorizontalAlign="Center"  Width="100px" />
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="name"
                    FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" 
                    HeaderText="รายการ" ItemStyle-HorizontalAlign="Left" 
                    UniqueName="name" >
                    <HeaderStyle HorizontalAlign="Center" />
                    <FooterStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="amount"
                    Aggregate="Sum" HeaderText="วงเงิน (บาท)"
                    FooterAggregateFormatString="{0:#,##0.00}"
                    DataFormatString="{0:#,##0.00}"
                    HeaderStyle-HorizontalAlign="Center"
                    UniqueName="amount" Visible="true">
                    <HeaderStyle HorizontalAlign="Center" Width="120px" />
                    <FooterStyle HorizontalAlign="Right" Font-Bold="true" />
                    <ItemStyle HorizontalAlign="Right" />
                </telerik:GridBoundColumn>
            </Columns>
            </mastertableview>
            <clientsettings>
                <clientevents /><selecting allowrowselect="false" />
            </clientsettings>
        </telerik:RadGrid>
		</form>
	</body>
</html>
